package feng.demo.dao;

import feng.demo.entity.Order;
import feng.demo.entity.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderDao {
    List<Order> findAll();
    List<Order> findOrder(Map<String,Object>map);
    int add(Order order);
    Integer adds(Orders orders);
    int del(Integer ordid);
    int update(Order order);
    Order findById(Integer ordid);

    List<Orders> findAlls();
    Orders findByIds(Integer ordid);
    List<Orders> findOrders(Order order);
    List<Orders> findAllsLimit(@Param("pagenum") Integer pagenum, @Param("lines")Integer lines);
    List<Orders> findByUidLimit(@Param("uid") Integer uid,@Param("pagenum") Integer pagenum, @Param("lines")Integer lines);
    List<Orders> findByCusLimit(@Param("uid") Integer uid,@Param("pagenum") Integer pagenum, @Param("lines")Integer lines);
    int findCountAll();
    int findCountByUid(Integer uid);
}
